/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.ineatconseil.yougo.wicket.ui.common;

import org.apache.wicket.MarkupContainer;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.markup.html.panel.Panel;

/**
 *
 * @author nicolasger
 */
public class PanelHelper {
	private static final PanelHelper instance = new PanelHelper();
	private PanelHelper(){}

	public static PanelHelper getInstance() {
		return instance;
	}

	public  void replaceEmptyPanel(MarkupContainer panel, AjaxRequestTarget target, Panel addDemande) {
		panel.replaceWith(addDemande);
		target.addComponent(addDemande);
	}

}
